package com.innoking.docsys.workflow.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by Administrator on 2019/8/15.
 */

@FeignClient(value = "user-service")
public interface UserRestInterface {

    /**
     * @author:zyp
     * @description 根据用户id获取组织部门
     * @date: 2019/9/5 15:07
     * @return
     */
    @RequestMapping(value = "/home", method = RequestMethod.POST)
    String getDeptByUserId(@RequestBody String data);

    /**
     * @author:zyp
     * @description 根据用户id获取组织部门
     * @date: 2019/9/5 15:07
     * @return
     */
    @RequestMapping(value = "/test", method = RequestMethod.GET)
    String getRoleByUserId(@RequestParam("data") String data);

}
